package com.zhs.study.dto;

import io.swagger.annotations.ApiModel;
import lombok.*;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.web.multipart.MultipartFile;

/**
 *
 * @author zhenghuisheng
 * @since 2023.04.18
 */
@Data
@ApiModel(value = "ArticleDto")
public class ArticleDto implements Serializable {
    //表字段
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "文章链接")
    private String articlePath;

    @ApiModelProperty(value = "文章刷新的次数")
    private Integer articleCount;

    @ApiModelProperty(value = "文章加入时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "文章结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "0：未刷完  1：已刷完")
    private Integer isDeleted;

    private MultipartFile multipartFile;

    //=====================自定义字段=====================

    //id
    private List<String> idList;
}
